package com.weather.modules.service;

import com.weather.common.vo.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

//@FeignClient("weather-getweatherclient")
@FeignClient("weather-zuul")
public interface CityWeatherData {

    @RequestMapping(method = RequestMethod.GET, value = "/getweatherclient/citiesweather/getCity")
    WeatherResponse getCity(@RequestParam("cityId") String cityId);
}
